package com.gcxy.exception.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Copyright (C), 2024-2024, BUG闭退！
 * Author: Huang先森
 * Date: 2024/7/22 13:25
 * FileName: GlobalException
 * Description:
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface GlobalException {

    /**
     * Priority: The smaller the value, the higher the priority
     *
     * @return
     */
    int priority() default 1000;

    Class<? extends Throwable> throwable() default Throwable.class;

}